﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace IdragonetEye
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            bool createdNew;
            System.Threading.Mutex instance = new System.Threading.Mutex(true, System.Diagnostics.Process.GetCurrentProcess().ProcessName, out createdNew);
            if (createdNew)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
              

                if (args.Length == 0)
                    Application.Run(new Form_Eye_Main(args));
                else
                    Application.Run(new Form_Eye_Main(args));
            }
            else
            {
                MessageBox.Show("请勿重复启动.", "护眼精灵提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Application.Exit();
            }   

           
        }
    }
}
